package com.sptus.system.domain;

import java.io.Serializable;
import java.util.ArrayList;

import com.baomidou.mybatisplus.annotation.*;
import com.sptus.common.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@TableName("equipment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class Equipment implements Serializable {
    private static final long serialVersionUID = 1L;
    /**id*/
    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;

    /**'协议ID'*/
    @Excel(name = "'协议ID'", width = 15)
    private String pid;
    @Excel(name = "'协议ID'", width = 15)
    private String name;
    /**'协议子ID'*/
    @Excel(name = "'协议子ID'", width = 15)

    private String sid;
    /**'机型名称'*/
    @Excel(name = "'机型名称'", width = 15)
    private String mn;
    /**'设备序列号'*/
    @Excel(name = "'设备序列号'", width = 15)
    private String sn;
    /**mac*/
    @Excel(name = "mac", width = 15)
    private String mac;
    /**createTime*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
    /**updateTime*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;
    /**deleted*/
    @Excel(name = "deleted", width = 15)
    private Integer deleted;
    /**注册账号*/
    @Excel(name = "注册账号", width = 15)
    private String signBy;
    /**关联账号*/
    @Excel(name = "关联账号", width = 15)
    private String relevanceBy;
    /**状态 0：离线 1：上线 2：未配网*/
    @Excel(name = "状态 0：离线 1：上线 2：未配网", width = 15)
    private String status;
    /**逆变器时间*/
    @Excel(name = "逆变器时间", width = 15)
    private String t;
    /**工作状态 0：异常 1：正常*/
    @Excel(name = "工作状态 0：异常 1：正常", width = 15)
    private Integer workingCondition;
    /**并网状态0：未并网 1：并网 */
    @Excel(name = "并网状态0：未并网 1：并网 ", width = 15)
    private String parallelState;
    /**故障状态0：故障 1：正常*/
    @Excel(name = "故障状态0：故障 1：正常", width = 15)
    private String failureState;
    /**关联设备*/
    @Excel(name = "关联设备", width = 15)
    private Integer modeId;
    /**传递时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date transmitTime;
    private String cityId;
    private String address;
    private String stormState;
    private String phone;
    private String contacts;
    private  String location;
    @TableField(exist = false)
    private String type;
    @TableField(exist = false)
    private ArrayList<DevDictionaries> devDictionaries;
    @TableField(exist = false)
    private int userId;
}
